﻿

using IotContract.Dtos.Servers.Pushs;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Process.Zd;
[ProtoContract]
public class ZdProcessCvData:ProcessBaseData
{
    [ProtoMember(1)]
    public long EquipId { get; set; }
    /// <summary>
    /// 托盘号
    /// </summary>
    [ProtoMember(2)]
    public string Tray { get; set; }
    /// <summary>
    /// 设备编码
    /// </summary>
    [ProtoMember(3)]
    public string EquipNum { get; set; }
    /// <summary>
    /// 设备协议
    /// </summary>
    [ProtoMember(4)]
    public string ProtobufType { get; set; }

    /// <summary>
    /// 错误码
    /// </summary>
    [ProtoMember(5)]
    public int Error { get; set; }

    /// <summary>
    /// 任务号
    /// </summary>
    [ProtoMember(6)]
    public int Task { get; set; }
    /// <summary>
    /// 高位停准
    /// </summary>
    [ProtoMember(7)]
    public int MoveHigh { get; set; }
    /// <summary>
    /// 低位停准
    /// </summary>
    [ProtoMember(8)]
    public int MoveLow { get; set; }
    /// <summary>
    /// 是否存在托盘
    /// </summary>
    [ProtoMember(9)]
    public bool IsExistTray { get; set; }
    /// <summary>
    /// 托盘到位时间
    /// </summary>
    [ProtoMember(10)]
    public DateTime? TrayInTime { get; set; }
    /// <summary>
    /// 托盘停留时间
    /// </summary>
    [ProtoMember(11)]
    public double TrayOnMinutes { get; set; }
    /// <summary>
    /// 目的地址
    /// </summary>
    [ProtoMember(12)]
    public int Dest { get; set; }
    /// <summary>
    /// 连接状态
    /// </summary>
    [ProtoMember(13)]
    public bool Connection { get; set; }
    /// <summary>
    /// 0-脱机；1-脱机执行任务（弃用留作兼容）；2-待机；3-运行中；
    /// </summary>
    [ProtoMember(14)]
    public int Mode { get; set; }

}
